package ru.java2e;

public class Bullet
{	 
	int x, y;
	int rx, ry;
	Tank sender;
	
    public Bullet(int x, int y, int rx, int ry)
    {
    	this.x = x;
    	this.y = y;
    	this.rx = rx;
    	this.ry = ry;
    }
    
    public void moveB()
    {
    	x += rx;
    	y += ry;
    }

	public void setSender(Tank tank) {
		this.sender = tank;
	}
	
	public Tank getSender() {
		return sender;
	}
}
